package com.cfh.web.xml;

import java.util.List;

import org.apache.log4j.Logger;

import com.cfh.service.XmlService;
import com.opensymphony.xwork2.ActionSupport;

public class LangVoteXml extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private static final Logger logger = Logger.getLogger(LangVoteXml.class);
	private String xml = null;
	private XmlService xmlService = null;
	private String langid;
	public String execute() {
		try {
			xml = xmlService.langVote(langid);
		} catch (Exception e) {
			e.printStackTrace();
			logger.error("error in action", e);
			throw new RuntimeException(e);
		}
		return SUCCESS;
	}

	public void setXml(String xml) {
		this.xml = xml;
	}

	public String getXml() {
		return xml;
	}

	public void setXmlService(XmlService xmlService) {
		this.xmlService = xmlService;
	}

	public XmlService getXmlService() {
		return xmlService;
	}

	public void setLangid(String langid) {
		this.langid = langid;
	}

	public String getLangid() {
		return langid;
	}

}
